package com.youchuang.dao;

import java.util.List;

import com.youchuang.bean.Book;

public interface BookDAO extends BaseDao<Book> {

	public Book queryById(String id);
	
	public int queryAllCount();

	public List<Book> queryLimmitByCategoryId(String categoryId, int first, int max);

	public List<Book> queryLimmitByHot(int first, int max);

	public List<Book> queryLimmitByNew(int first, int max);

	public List<Book> queryLimmitByHotNew(long time, int first, int max);

	public List<Book> queryLimmitLikeByPruductName(String productName, int first, int max);

	public List<Book> queryLimmitByCategoryIdNew(String categoryId, int first, int max);
	
	public List<Book> queryLimmitByCategoryIdHot(String categoryId, int first, int max);

}
